import request from '../utils/request';

/**
 * 查询字典列表分页
 * @param query
 * @returns {AxiosPromise}
 */
export const selectAll = query => {
    return request({
        url: 'rest/parameter/selectAll',
        method: 'POST',
        data: query
    });
};

/**
 * 新增字典
 * @param query
 * @returns {AxiosPromise}
 */
export const addParameter= query => {
    return request({
        url: 'rest/parameter/insert',
        method: 'POST',
        data: query
    });
};